package org.cangku.dao;

import org.apache.ibatis.annotations.Param;
import org.cangku.entity.Staff;

import java.util.List;

public interface staffDao {

    /*普通查询*/
    public List<Staff> query();


    public List<Staff> getAllStaff(@Param("yName") String yName, @Param("offset") int offset, @Param("limit") int limit);
    //统计员工
    public int getTotalCount(@Param("yname") String yname);
    //根据id查找员工
    public List<Staff> selectById(@Param("yid") int yid);
    //删除员工
    public boolean delInfo(@Param("yid") int yid);
    //添加员工
    public boolean insert(Staff staff);
    //修改员工信息
    public boolean update(Staff staff);

    public boolean del(@Param("yid") int yid);
}
